package com.hyts.apidoc.swagger.config;

import io.swagger.annotations.SwaggerDefinition.Scheme;

import java.util.HashMap;
import java.util.Map;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.apidoc.swagger.config
 * author:Libo/Alex
 * create-date:2019-05-12 07:46
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于: Swagger file文件路径操作
 */
public interface SwaggerConfig {


    String INPUT_SWAGGER_FILE_PATH = "src/main/resources/swagger.yaml";

    String OUTPUT_FILE_PATH = "src/main/resources/swagger";

    String DEFAULT_TAG_NAME = "功能说明";


    /********************参数默认值*************************/

    String DEFAULT_SWAGGER_VERSION = "2.0";

    String DEFAULT_SWAGGER_BASE_PATH = "/";

    Scheme[] DEFAULT_SWAGGER_SCHEMES_ARRAY = {Scheme.HTTP,Scheme.HTTPS,Scheme.WS,Scheme.WSS};

    Map<String,String> DEFAULT_SWAGGER_TAGS_ARRAY = new HashMap<String,String>(){{
        put("服务生成方法","swagger文档生成服务");
        put("服务生成名称","coffice-toolbox-apidoc");
        put(DEFAULT_TAG_NAME,"待完成补充");
    }};

    String DEFAULT_SWAGGER_HOST = "http://127.0.0.1";

    String DEFAULT_SWAGGER_INFO_DESCRIPTION = "coffice-toolbox系列apidoc文档生成服务";

    String DEFAULT_SWAGGER_INFO_TITLE = "coffice-toolbox-apidoc";

    String DEFAULT_SWAGGER_INFO_VERSION = "V1.0.0";

    String DEFAULT_SWAGGER_INFO_CONTACT_EMAIL = "liboware@gmail.com";

    String DEFAULT_SWAGGER_LICENSE_NAME = "Apache 2.0";

    String DEFAULT_SWAGGER_LICENSE_URL = "http://www.apache.org/licenses/LICENSE-2.0.html";

    /********************参数默认值*************************/

    String[] DEFAULT_SWAGGER_PATH_HTTP_METHODS = {"post","get", "head",  "put", "delete", "options","patch"};

    String DEFAULT_SWAGGER_PRODUCES = "application/json";

    String DEFAULT_SWAGGER_CONSUMES = "application/json";

}
